package com.ruoyi.ewem;

import com.ruoyi.common.security.annotation.EnableRyFeignClients;
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
import io.minio.MinioClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@EnableRyFeignClients
@EnableCustomSwagger2
@MapperScan("com.ruoyi.ewem.mapper")
public class EwemApp
{
    public static void main( String[] args )
    {
        SpringApplication.run(EwemApp.class,args);
        System.out.println( "Hello World!" );
    }

    @Bean
    public MinioClient getClient() throws Exception {
        MinioClient minioClient = new MinioClient(
                "http://127.0.0.1:9000",
                "51cLM1BrITAq68aa",
                "dICb1I4SMOgQlYXjPSjYZ9d1HpBk97om"
        );
        return minioClient;
    }
}
